﻿using SqlSugar;

namespace LowCoding.Domain
{
    /// <summary>
    /// 条件查询特性
    /// 传入有值则加入查询条件
    /// </summary>
    public class SearchAttribute : Attribute
    {
        /// <summary>
        /// 字段名
        /// 如果不设置默认取查询的字段名
        /// </summary>
        public string FieldName { get; set; }

        /// <summary>
        /// 条件类型
        /// </summary>
        public ConditionalType ConditionalType { get; set; }
    }
}